import http from "./request";

//登录
export  const Login=(params)=>http.post("/api/login",params)

//详情页

export  const getDetailsDate=(params)=>http.post("/api/details",params)


//主页
export const home=()=>http.get("/api/home")

//分类
export const classify=()=>http.get("/api/classify")



//查询购物车 参数带个uid过去
export  const getCart=(params)=>http.post("/api/Itsmine",params)

//查询页
export const Search =()=>http.get("/api/Search")

//注册  携带参数 username,password,email,phone,avatar
export const reg =(params)=>http.post("/api/reg",params)



export  const Gett=(params)=>http.post("/data")
//
export  const data2=(params)=>http.post("/data2")

export const hpp2=(params)=>http.get("/api/user/getUser")